package cn.yunyichina.provider.pay.constant;

/**
 * 订单查询全局返回码
 *
 */
public interface QueryJouralResponse {

    enum Common {

        FAILURE("-1", "failure"),
        SUCCESS("0", "success"),
        NO_DATA("1", "data not found"),
        REMOTE_FAILURE("1", "remote method [%s] call failed"),
        TIME_ERR("2","结束时间endTime不能小于开始时间startTime"),
        TIME_EXCEESS("3","订单开始时间与结束时间间隔不能超过7天"),
        PARAMETRE_ERR("5","parameters error")
        ;

        private String code;

        private String message;

        Common(String code, String message) {
            this.code = code;
            this.message = message;
        }

        public String getCode() {
            return this.code;
        }

        public String getMessage() {
            return this.message;
        }

    }

}
